package com.zhijian.wharf.service;

import com.zhijian.util.page.Page;
import com.zhijian.wharf.entity.po.VideoDevice;
import com.zhijian.wharf.entity.vo.request.VideoDeviceSaveOrUpdateVo;
import com.zhijian.wharf.entity.vo.request.VideoDeviceSearchVo;
import com.zhijian.wharf.entity.vo.response.VideoDeviceVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 视频设备 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-10 13:59:25
 */
public interface VideoDeviceService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    VideoDevice selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    VideoDeviceVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 按照主键批量删除
     *
     * @param idList
     */
    void deleteByIdList(List<Long> idList);

    /**
     * 新增
     *
     * @param videoDevice
     * @return
     */
    Long insert(VideoDevice videoDevice);

    /**
     * 动态新增
     *
     * @param videoDevice
     * @return
     */
    Long insertSelective(VideoDevice videoDevice);

    /**
     * 更改
     *
     * @param videoDevice
     * @return
     */
    boolean update(VideoDevice videoDevice);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(VideoDevice record);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean save(VideoDeviceSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 编辑
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean modify(VideoDeviceSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 列表
     *
     * @param videoDeviceSearchVo
     * @return
     */
    VideoDeviceVo selectOne(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 总数
     *
     * @param videoDeviceSearchVo
     * @return
     */
    Integer count(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 列表
     *
     * @param videoDeviceSearchVo
     * @return
     */
    List<VideoDeviceVo> selectList(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 分页查询
     *
     * @param videoDeviceSearchVo
     * @return
     */
    Page<VideoDeviceVo> selectPage(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<VideoDevice> entities);

    /**
     * 动态删除，慎重用此方法！！
     *
     * @param videoDeviceSearchVo
     * @return
     */
    void deleteByCondition(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 导入Excel
     *
     * @param areaId
     * @param file
     * @return
     */
    boolean importExcel(Long areaId, MultipartFile file);
}